package com.housekeeping.housekeeping.advertisingmanagement.service;/*
 * @author  pyh
 * @date  2021/1/22 0022 下午 9:18
 * @version 1.0
 * @since JDK1.8_241
 */

import com.housekeeping.housekeeping.advertisingmanagement.entity.Product;
import com.housekeeping.housekeeping.advertisingmanagement.utils.Page;

import java.sql.SQLException;

public interface ProductService {
    //保存数据
    int saveAdMessages(Product product);
    //分页查询分信息   page：页数  size：数据总条数
    Page<Product> list(int page, int size) throws SQLException;

    //添加分类信息
    void add(Product product);
    //通过id删除分类信息
    int del(int id);
    //修改
    Product update(int id);
}
